// import './assets/main.css'
// import './styles/element/index.scss'
import './styles/common.scss'
import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

//Element Plus。
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import {lazyPlugin} from './directives'
// import { componentPlugin } from '@/components'

// import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)
import {componentPlugin } from "@/components/index"


const app = createApp(App)
// app.use(componentPlugin)
app.use(pinia)
app.use(componentPlugin)
// app.use(createPinia())
app.use(router)
app.use(ElementPlus)
app.use(lazyPlugin)
app.mount('#app')
